<?php
/**
 * @version SVN: $Id$
 * @package    fmcSeminaire
 * @subpackage Views
 * @author     EasyJoomla {@link http://www.easy-joomla.org Easy-Joomla.org}
 * @author     Ludovic Launer {@link }
 * @author     Created on 10-Nov-2010
 * @license    GNU/GPL
 */

//-- No direct access
defined('_JEXEC') or die('=;)');

jimport('joomla.application.component.view');

/**
 * HTML View class for the fmcSeminaire Component
 *
 * @package    fmcSeminaire
 * @subpackage Views
 */

class fmcSeminaireListViewfmcSeminaire extends JView
{
    /**
     * fmcSeminaire view display method.
     *
     * @return void
     **/
    function display($tpl = null)
    {
        //-- Get the fmcSeminaire
        $fmcSeminaire = $this->get('Data');
        $isNew = ($fmcSeminaire->seminaireId < 1);

        $text = $isNew ? JText::_('New') : JText::_('Edit');
        JToolBarHelper::title('fmcSeminaire: <small><small>[ '.$text.' ]</small></small>');
        JToolBarHelper::save();

        if ($isNew)
        {
            JToolBarHelper::cancel();
        }
        else
        {
            //-- For existing items the button is renamed `close`
            JToolBarHelper::cancel('cancel', JText::_('Close'));
        }

        $this->assignRef('fmcSeminaire', $fmcSeminaire);

        parent::display($tpl);
    }//function

}//class
